﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Text;

using LuckyBingoRcon.Commands.Events;

namespace LuckyBingoRcon.Commands
{
	public class CustomCommand : Command
	{
        public EventHandler<CustomCommandEventArgs> OnResponse;

        public CustomCommand(string command)
		{
            base.commandText = command;
		}

		protected override void CommandOnResponse(string response)
		{
			if (OnResponse != null)
            {
                CustomCommandEventArgs e = new CustomCommandEventArgs();
                e.RawResponse = response;
                OnResponse(this, e);
            }
		}
	}
}
